home *** CD-ROM | disk | FTP | other *** search
/ isnet Internet / Isnet Internet CD.iso / prog / hiz / 09 / 09.exe / adynware.exe / perl / lib / site / Curses.pm < prev    next >
Encoding:
Perl POD Document  |  1999-12-28  |  16.7 KB  |  556 lines

  1. package Curses;
  2.  
  3. use Carp;
  4. require Exporter;
  5. require DynaLoader;
  6. @ISA = qw(Exporter DynaLoader);
  7.  
  8. bootstrap Curses;
  9.  
  10. $VERSION    = 1.01;
  11. $XS_VERSION = eval { XS_VERSION() };
  12. $XS_VERSION = "pre 1.01" if $@;
  13.  
  14. if ($VERSION ne $XS_VERSION) {
  15.     croak "Curses.pm version [$VERSION] does not match C code [$XS_VERSION]";
  16. }
  17.  
  18. tie $LINES,  Curses::Vars, 1;
  19. tie $COLS,   Curses::Vars, 2;
  20. tie $stdscr, Curses::Vars, 3;
  21. tie $curscr, Curses::Vars, 4;
  22.  
  23. sub new
  24. {
  25.   my($obj,$nl,$nc,$by,$bx) = (@_, 0, 0, 0, 0);
  26.  
  27.   unless ($_initscr)    { initscr(); $_initscr++; }
  28.   if ($obj eq 'Curses') { return newwin($nl, $nc, $by, $bx); }
  29.   else                  { return subwin($obj, $nl, $nc, $by, $bx); }
  30. }
  31.  
  32. sub AUTOLOAD
  33. {
  34.     my($name, $val);
  35.  
  36.     ($name = $AUTOLOAD) =~ s/.*:://;
  37.     croak "Curses does not support the curses constant '$name', used"
  38.     unless $_al{$name};
  39.  
  40.     $val = constant($name, $_al{$name});
  41.     eval "sub $AUTOLOAD { $val }";
  42.     goto &$AUTOLOAD;
  43. }
  44.  
  45. sub _unimpl
  46. {
  47.     croak "Curses does not support the curses function '$_[0]', used";
  48. }
  49.  
  50. sub tstp     { _unimpl('tstp');      }
  51. sub scanw    { _unimpl('scanw');     }
  52. sub _putchar { _unimpl('_putchar');  }
  53. sub fullname { _unimpl('fullname');  }
  54.  
  55.  
  56. sub printw { addstr(sprintf(shift(@_),@_)); }
  57.  
  58. @EXPORT = qw(
  59. &tstp &printw &scanw &_putchar &fullname
  60.  
  61. stdscr curscr LINES COLS $LINES $COLS KEY_F
  62.  
  63. addch addchnstr addchstr addnstr addstr attroff attron attrset
  64. baudrate beep bkgd bkgdset border box can_change_color cbreak clear
  65. clearok clrtobot clrtoeol color_content COLOR_PAIR copywin delch
  66. deleteln delwin derwin doupdate echo echochar endwin erase erasechar
  67. flash flushinp flusok getattrs getbegyx getbkgd getcap getch getmaxyx
  68. getnstr getparyx getstr gettmode getyx halfdelay has_colors has_ic
  69. has_il hline idcok idlok immedok inch inchnstr inchstr init_color
  70. init_pair initscr innstr insch insdelln insertln insnstr insstr instr
  71. intrflush is_linetouched is_wintouched isendwin keyname keypad
  72. killchar leaveok longname meta move mvcur mvwin newpad newwin nl
  73. nocbreak nodelay noecho nonl noqiflush noraw notimeout noutrefresh
  74. overlay overwrite pair_content PAIR_NUMBER pechochar pnoutrefresh
  75. prefresh qiflush raw refresh resetty savetty scrl scroll scrollok
  76. setscrreg setterm slk_clear slk_init slk_label slk_noutrefresh
  77. slk_refresh slk_restore slk_set slk_touch standend standout
  78. start_color subpad subwin syncok timeout touchline touchln
  79. touchoverlap touchwin typeahead unctrl ungetch vline
  80. );
  81.  
  82. @_CONSTANTS = qw(
  83. OK ERR
  84.  
  85. ACS_BLOCK ACS_BOARD ACS_BTEE ACS_BULLET ACS_CKBOARD ACS_DARROW
  86. ACS_DEGREE ACS_DIAMOND ACS_HLINE ACS_LANTERN ACS_LARROW ACS_LLCORNER
  87. ACS_LRCORNER ACS_LTEE ACS_PLMINUS ACS_PLUS ACS_RARROW ACS_RTEE ACS_S1
  88. ACS_S9 ACS_TTEE ACS_UARROW ACS_ULCORNER ACS_URCORNER ACS_VLINE
  89.  
  90. A_ALTCHARSET A_ATTRIBUTES A_BLINK A_BOLD A_CHARTEXT A_COLOR A_DIM
  91. A_INVIS A_NORMAL A_PROTECT A_REVERSE A_STANDOUT A_UNDERLINE
  92.  
  93. COLOR_BLACK COLOR_BLUE COLOR_CYAN COLOR_GREEN COLOR_MAGENTA COLOR_RED
  94. COLOR_WHITE COLOR_YELLOW
  95.  
  96. KEY_A1 KEY_A3 KEY_B2 KEY_BACKSPACE KEY_BEG KEY_BREAK KEY_BTAB KEY_C1
  97. KEY_C3 KEY_CANCEL KEY_CATAB KEY_CLEAR KEY_CLOSE KEY_COMMAND KEY_COPY
  98. KEY_CREATE KEY_CTAB KEY_DC KEY_DL KEY_DOWN KEY_EIC KEY_END KEY_ENTER
  99. KEY_EOL KEY_EOS KEY_EXIT KEY_F0 KEY_FIND KEY_HELP KEY_HOME KEY_IC
  100. KEY_IL KEY_LEFT KEY_LL KEY_MARK KEY_MAX KEY_MESSAGE KEY_MIN KEY_MOVE
  101. KEY_NEXT KEY_NPAGE KEY_OPEN KEY_OPTIONS KEY_PPAGE KEY_PREVIOUS
  102. KEY_PRINT KEY_REDO KEY_REFERENCE KEY_REFRESH KEY_REPLACE KEY_RESET
  103. KEY_RESTART KEY_RESUME KEY_RIGHT KEY_SAVE KEY_SBEG KEY_SCANCEL
  104. KEY_SCOMMAND KEY_SCOPY KEY_SCREATE KEY_SDC KEY_SDL KEY_SELECT KEY_SEND
  105. KEY_SEOL KEY_SEXIT KEY_SF KEY_SFIND KEY_SHELP KEY_SHOME KEY_SIC
  106. KEY_SLEFT KEY_SMESSAGE KEY_SMOVE KEY_SNEXT KEY_SOPTIONS KEY_SPREVIOUS
  107. KEY_SPRINT KEY_SR KEY_SREDO KEY_SREPLACE KEY_SRESET KEY_SRIGHT
  108. KEY_SRSUME KEY_SSAVE KEY_SSUSPEND KEY_STAB KEY_SUNDO KEY_SUSPEND
  109. KEY_UNDO KEY_UP
  110. );
  111.  
  112. sub KEY_F { return $_[0] + KEY_F0(); }
  113.  
  114. push(@EXPORT, @_CONSTANTS);
  115. for (@_CONSTANTS) { $_al{$_} = ++$_i; }
  116.  
  117.  
  118. if ($OldCurses)
  119. {
  120.     @_OLD = qw(
  121.     $ttytype $Def_term $My_term
  122.     &wprintw &mvprintw &wmvprintw &wscanw &mvscanw &mvwscanw
  123.  
  124.     waddch mvaddch mvwaddch waddchnstr mvaddchnstr mvwaddchnstr waddchstr
  125.     mvaddchstr mvwaddchstr waddnstr mvaddnstr mvwaddnstr waddstr mvaddstr
  126.     mvwaddstr wattroff wattron wattrset wbkgd wbkgdset wborder wclear
  127.     wclrtobot wclrtoeol wdelch mvdelch mvwdelch wdeleteln wechochar werase
  128.     wgetch mvgetch mvwgetch wgetnstr mvgetnstr mvwgetnstr wgetstr mvgetstr
  129.     mvwgetstr whline winch mvinch mvwinch winchnstr mvinchnstr mvwinchnstr
  130.     winchstr mvinchstr mvwinchstr winnstr mvinnstr mvwinnstr winsch
  131.     mvinsch mvwinsch winsdelln winsertln winsnstr mvinsnstr mvwinsnstr
  132.     winsstr mvinsstr mvwinsstr winstr mvinstr mvwinstr wmove wnoutrefresh
  133.     wrefresh wscrl wsetscrreg wstandend wstandout wtimeout wtouchln wvline
  134.     );
  135.  
  136.     push(@EXPORT, @_OLD);
  137.     for (@_OLD)
  138.     {
  139.     next if /^[\$&]/;
  140.     /^(?:mv)?(?:w)?(.*)/;
  141.     eval "sub $_ { $1(\@_); }";
  142.     }
  143.  
  144.  
  145.     eval <<EOS;
  146. sub wprintw   { addstr(shift(@_),sprintf(shift(@_),@_)); }
  147. sub mvprintw  { addstr(shift(@_),shift(@_),sprintf(shift(@_),@_)); }
  148. sub mvwprintw { addstr(shift(@_),shift(@_),shift(@_),sprintf(shift(@_),@_)); }
  149.     sub wscanw   { _unimpl('wscanw');    }
  150.     sub mvscanw  { _unimpl('mvscanw');   }
  151.     sub mvwscanw { _unimpl('mvwscanw');  }
  152. EOS
  153.     tie $ttytype,  Curses::Vars, 5;
  154.     tie $Def_term, Curses::Vars, 6;
  155.     tie $My_term,  Curses::Vars, 7;
  156. }
  157.  
  158. 1;
  159.  
  160. __END__
  161.  
  162. =head1 NAME
  163.  
  164. Curses - terminal screen handling and optimization
  165.  
  166. =head1 SYNOPSIS
  167.  
  168.     use Curses;
  169.  
  170.     initscr;
  171.     ...
  172.     endwin;
  173.  
  174. =head1 DESCRIPTION
  175.  
  176. C<Curses> is the interface between Perl and your system's curses(3)
  177. library.  For descriptions on the usage of a given function, variable,
  178. or constant, consult your system's documentation, as such information
  179. invariably varies (:-) between different curses(3) libraries and
  180. operating systems.  This document describes the interface itself, and
  181. assumes that you already know how your system's curses(3) library
  182. works.
  183.  
  184. =head2 Unified Functions
  185.  
  186. Many curses(3) functions have variants starting with the prefixes
  187. I<w->, I<mv->, and/or I<wmv->.  These variants differ only in the
  188. explicit addition of a window, or by the addition of two coordinates
  189. that are used to move the cursor first.  For example, C<addch()> has
  190. three other variants: C<waddch()>, C<mvaddch()>, and C<mvwaddch()>.
  191. The variants aren't very interesting; in fact, we could roll all of
  192. the variants into original function by allowing a variable number
  193. of arguments and analyzing the argument list for which variant the
  194. user wanted to call.
  195.  
  196. Unfortunately, curses(3) predates varargs(3), so in C we were stuck
  197. with all the variants.  However, C<Curses> is a Perl interface, so we
  198. are free to "unify" these variants into one function.  The section
  199. L<"Supported Functions"> below lists all curses(3) function supported
  200. by C<Curses>, along with a column listing if it is I<unified>.  If
  201. so, it takes a varying number of arguments as follows:
  202.  
  203. =over 4
  204.  
  205. C<function( [win], [y, x], args );>
  206.  
  207. I<win> is an optional window argument, defaulting to C<stdscr> if not
  208. specified.
  209.  
  210. I<y, x> is an optional coordinate pair used to move the cursor,
  211. defaulting to no move if not specified.
  212.  
  213. I<args> are the required arguments of the function.  These are the
  214. arguments you would specify if you were just calling the base function
  215. and not any of the variants.
  216.  
  217. =back
  218.  
  219. This makes the variants obsolete, since their functionality has been
  220. merged into a single function, so C<Curses> does not define them by
  221. default.  You can still get them if you want, by setting the
  222. variable C<$Curses::OldCurses> to a non-zero value before using the
  223. C<Curses> package.  See L<"Perl 4.X C<cursperl> Compatibility">
  224. for an example of this.
  225.  
  226. =head2 Objects
  227.  
  228. Objects are supported.  Example:
  229.  
  230.     $win = new Curses;
  231.     $win->addstr(10, 10, 'foo');
  232.     $win->refresh;
  233.     ...
  234.  
  235. Any function that has been marked as I<unified> (see
  236. L<"Supported Functions"> below and L<"Unified Functions"> above)
  237. can be called as a method for a Curses object. 
  238.  
  239. Do not use C<initscr()> if using objects, as the first call to get
  240. a C<new Curses> will do it for you.
  241.  
  242. =head1 COMPATIBILITY
  243.  
  244. =head2 Perl 4.X C<cursperl> Compatibility
  245.  
  246. C<Curses> has been written to take advantage of the new features of
  247. Perl.  I felt it better to provide an improved curses programming
  248. environment rather than to be 100% compatible.  However, many old
  249. C<curseperl> applications will probably still work by starting the
  250. script with:
  251.  
  252.     BEGIN { $Curses::OldCurses = 1; }
  253.     use Curses;
  254.  
  255. Any old application that still does not work should print an
  256. understandable error message explaining the problem.
  257.  
  258. Some functions and variables are not supported by C<Curses>, even with
  259. the C<BEGIN> line.  They are listed under
  260. L<"curses(3) items not supported by Curses">.
  261.  
  262. The variables C<$stdscr> and C<$curscr> are also available as
  263. functions C<stdscr> and C<curscr>.  This is because of a Perl bug.
  264. See the L<BUGS> section for details.
  265.  
  266. =head2 Incompatibilities with previous versions of C<Curses>
  267.  
  268. In previous versions of this software, some Perl functions took a
  269. different set of parameters than their C counterparts.  This is no
  270. longer true.  You should now use C<getstr($str)> and C<getyx($y, $x)>
  271. instead of C<$str = getstr()> and C<($y, $x) = getyx()>.
  272.  
  273. =head2 Incompatibilities with other Perl programs
  274.  
  275.     menu.pl, v3.0 and v3.1
  276.     There were various interaction problems between these two
  277.     releases and Curses.  Please upgrade to the latest version
  278.     (v3.3 as of 3/16/96).
  279.  
  280. =head1 DIAGNOSTICS
  281.  
  282. =over 4
  283.  
  284. =item * Curses function '%s' called with too %s arguments at ...
  285.  
  286. You have called a C<Curses> function with a wrong number of
  287. arguments.
  288.  
  289. =item * argument %d to Curses function '%s' is not a Curses window at ...
  290. =item * argument is not a Curses window at ...
  291.  
  292. The window argument you gave to the function wasn't really a window.
  293.  
  294. This probably means that you didn't give the right arguments to a
  295. I<unified> function.  See the DESCRIPTION section on L<Unified
  296. Functions> for more information.
  297.  
  298. =item * Curses function '%s' is not defined by your vendor at ...
  299.  
  300. You have a C<Curses> function in your code that your system's curses(3)
  301. library doesn't define.
  302.  
  303. =item * Curses constant '%s' is not defined by your vendor at ...
  304.  
  305. You have a C<Curses> constant in your code that your system's curses(3)
  306. library doesn't define.
  307.  
  308. =item * Curses does not support the curses function '%s', used at ...
  309.  
  310. You have a curses(3) function in your code that the C<Curses> module
  311. doesn't support.
  312.  
  313. =item * Curses does not support the curses variable '%s', used at ...
  314.  
  315. You have a curses(3) variable in your code that the C<Curses> module
  316. doesn't support.
  317.  
  318. =item * Curses does not support the curses constant '%s', used at ...
  319.  
  320. You have a bareword in your code that is trying to be interpreted as
  321. a C<Curses> constant, but C<Curses> doesn't know anything about it.
  322.  
  323. =item * Curses::Vars::FETCH called with bad index at ...
  324. =item * Curses::Vars::STORE called with bad index at ...
  325.  
  326. You've been playing with the C<tie> interface to the C<Curses>
  327. variables.  Don't do that.  :-)
  328.  
  329. =item * Anything else
  330.  
  331. Check out the F<perldiag> man page to see if the error is in there.
  332.  
  333. =back
  334.  
  335. =head1 BUGS
  336.  
  337. If you use the variables C<$stdscr> and C<$curscr> instead of their
  338. functional counterparts (C<stdscr> and C<curscr>), you might run into
  339. a bug in Perl where the "magic" isn't called early enough.  This is
  340. manifested by the C<Curses> package telling you C<$stdscr> isn't a
  341. window.  One workaround is to put a line like C<$stdscr = $stdscr>
  342. near the front of your program.
  343.  
  344. Probably many more.
  345.  
  346. =head1 AUTHOR
  347.  
  348. William Setzer <William_Setzer@ncsu.edu>
  349.  
  350. =head1 SYNOPSIS OF PERL CURSES SUPPORT
  351.  
  352. =head2 Supported Functions
  353.  
  354.     Supported     Unified?        Supported via $OldCurses[*]
  355.     ---------     --------        ------------------------
  356.     addch        Yes        waddch mvaddch mvwaddch
  357.     addchnstr    Yes        waddchnstr mvaddchnstr mvwaddchnstr
  358.     addchstr    Yes        waddchstr mvaddchstr mvwaddchstr
  359.     addnstr        Yes        waddnstr mvaddnstr mvwaddnstr
  360.     addstr        Yes        waddstr mvaddstr mvwaddstr
  361.     attroff        Yes        wattroff
  362.     attron        Yes        wattron
  363.     attrset        Yes        wattrset
  364.     baudrate    No
  365.     beep        No
  366.     bkgd        Yes        wbkgd
  367.     bkgdset        Yes        wbkgdset
  368.     border        Yes        wborder
  369.     box        Yes
  370.     can_change_color No
  371.     cbreak        No
  372.     clear        Yes        wclear
  373.     clearok        Yes
  374.     clrtobot    Yes        wclrtobot
  375.     clrtoeol    Yes        wclrtoeol
  376.     color_content    No
  377.     COLOR_PAIR    No
  378.     copywin        No
  379.     delch        Yes        wdelch mvdelch mvwdelch
  380.     deleteln    Yes        wdeleteln
  381.     delwin        Yes
  382.     derwin        Yes
  383.     doupdate    No
  384.     echo        No
  385.     echochar    Yes        wechochar
  386.     endwin        No
  387.     erase        Yes        werase
  388.     erasechar    No
  389.     flash        No
  390.     flushinp    No
  391.     flusok        Yes
  392.     getattrs    Yes
  393.     getbegyx    Yes
  394.     getbkgd        Yes
  395.     getcap        No
  396.     getch        Yes        wgetch mvgetch mvwgetch
  397.     getmaxyx    Yes
  398.     getnstr        Yes        wgetnstr mvgetnstr mvwgetnstr
  399.     getparyx    Yes
  400.     getstr        Yes        wgetstr mvgetstr mvwgetstr
  401.     gettmode    No
  402.     getyx        Yes
  403.     halfdelay    No
  404.     has_colors    No
  405.     has_ic        No
  406.     has_il        No
  407.     hline        Yes        whline
  408.     idcok        Yes
  409.     idlok        Yes
  410.     immedok        Yes
  411.     inch        Yes        winch mvinch mvwinch
  412.     inchnstr    Yes        winchnstr mvinchnstr mvwinchnstr
  413.     inchstr        Yes        winchstr mvinchstr mvwinchstr
  414.     init_color    No
  415.     init_pair    No
  416.     initscr        No
  417.     innstr        Yes        winnstr mvinnstr mvwinnstr
  418.     insch        Yes        winsch mvinsch mvwinsch
  419.     insdelln    Yes        winsdelln
  420.     insertln    Yes        winsertln
  421.     insnstr        Yes        winsnstr mvinsnstr mvwinsnstr
  422.     insstr        Yes        winsstr mvinsstr mvwinsstr
  423.     instr        Yes        winstr mvinstr mvwinstr
  424.     intrflush    Yes
  425.     is_linetouched    Yes
  426.     is_wintouched    Yes
  427.     isendwin    No
  428.     keyname        No
  429.     keypad        Yes
  430.     killchar    No
  431.     leaveok        Yes
  432.     longname    No
  433.     meta        Yes
  434.     move        Yes        wmove
  435.     mvcur        No
  436.     mvwin        Yes
  437.     newpad        No
  438.     newwin        No
  439.     nl        No
  440.     nocbreak    No
  441.     nodelay        Yes
  442.     noecho        No
  443.     nonl        No
  444.     noqiflush    No
  445.     noraw        No
  446.     notimeout    Yes
  447.     noutrefresh    Yes        wnoutrefresh
  448.     overlay        No
  449.     overwrite    No
  450.     pair_content    No
  451.     PAIR_NUMBER    No
  452.     pechochar    No
  453.     pnoutrefresh    No
  454.     prefresh    No
  455.     qiflush        No
  456.     raw        No
  457.     refresh        Yes        wrefresh
  458.     resetty        No
  459.     savetty        No
  460.     scrl        Yes        wscrl
  461.     scroll        Yes
  462.     scrollok    Yes
  463.     setscrreg    Yes        wsetscrreg
  464.     setterm        No
  465.     slk_clear    No
  466.     slk_init    No
  467.     slk_label    No
  468.     slk_noutrefresh    No
  469.     slk_refresh    No
  470.     slk_restore    No
  471.     slk_set        No
  472.     slk_touch    No
  473.     standend    Yes        wstandend
  474.     standout    Yes        wstandout
  475.     start_color    No
  476.     subpad        No
  477.     subwin        Yes
  478.     syncok        Yes
  479.     timeout        Yes        wtimeout
  480.     touchline    Yes
  481.     touchln        Yes        wtouchln
  482.     touchoverlap    No
  483.     touchwin    Yes
  484.     typeahead    No
  485.     unctrl        No
  486.     ungetch        No
  487.     vline        Yes        wvline
  488.     
  489. [*] To use any functions in this column, the variable
  490. C<$Curses::OldCurses> must be set to a non-zero value before using the
  491. C<Curses> package.  See L<"Perl 4.X cursperl Compatibility"> for an
  492. example of this.
  493.  
  494. =head2 Supported Variables
  495.     
  496.     LINES        COLS        stdscr[*]    curscr[*]
  497.     
  498. =head2 Supported Constants
  499.     
  500.     OK        ERR
  501.     
  502.     ACS_BLOCK    ACS_BOARD    ACS_BTEE    ACS_BULLET
  503.     ACS_CKBOARD    ACS_DARROW    ACS_DEGREE    ACS_DIAMOND
  504.     ACS_HLINE    ACS_LANTERN    ACS_LARROW    ACS_LLCORNER
  505.     ACS_LRCORNER    ACS_LTEE    ACS_PLMINUS    ACS_PLUS
  506.     ACS_RARROW    ACS_RTEE    ACS_S1        ACS_S9
  507.     ACS_TTEE    ACS_UARROW    ACS_ULCORNER    ACS_URCORNER
  508.     ACS_VLINE
  509.     
  510.     A_ALTCHARSET    A_ATTRIBUTES    A_BLINK        A_BOLD
  511.     A_CHARTEXT    A_COLOR        A_DIM        A_INVIS
  512.     A_NORMAL    A_PROTECT    A_REVERSE    A_STANDOUT
  513.     A_UNDERLINE
  514.     
  515.     COLOR_BLACK    COLOR_BLUE    COLOR_CYAN    COLOR_GREEN
  516.     COLOR_MAGENTA    COLOR_RED    COLOR_WHITE    COLOR_YELLOW
  517.     
  518.     KEY_A1        KEY_A3        KEY_B2        KEY_BACKSPACE
  519.     KEY_BEG        KEY_BREAK    KEY_BTAB    KEY_C1
  520.     KEY_C3        KEY_CANCEL    KEY_CATAB    KEY_CLEAR
  521.     KEY_CLOSE    KEY_COMMAND    KEY_COPY    KEY_CREATE
  522.     KEY_CTAB    KEY_DC        KEY_DL        KEY_DOWN
  523.     KEY_EIC        KEY_END        KEY_ENTER    KEY_EOL
  524.     KEY_EOS        KEY_EXIT    KEY_F0        KEY_FIND
  525.     KEY_HELP    KEY_HOME    KEY_IC        KEY_IL
  526.     KEY_LEFT    KEY_LL        KEY_MARK    KEY_MAX
  527.     KEY_MESSAGE    KEY_MIN        KEY_MOVE    KEY_NEXT
  528.     KEY_NPAGE    KEY_OPEN    KEY_OPTIONS    KEY_PPAGE
  529.     KEY_PREVIOUS    KEY_PRINT    KEY_REDO    KEY_REFERENCE
  530.     KEY_REFRESH    KEY_REPLACE    KEY_RESET    KEY_RESTART
  531.     KEY_RESUME    KEY_RIGHT    KEY_SAVE    KEY_SBEG
  532.     KEY_SCANCEL    KEY_SCOMMAND    KEY_SCOPY    KEY_SCREATE
  533.     KEY_SDC        KEY_SDL        KEY_SELECT    KEY_SEND
  534.     KEY_SEOL    KEY_SEXIT    KEY_SF        KEY_SFIND
  535.     KEY_SHELP    KEY_SHOME    KEY_SIC        KEY_SLEFT
  536.     KEY_SMESSAGE    KEY_SMOVE    KEY_SNEXT    KEY_SOPTIONS
  537.     KEY_SPREVIOUS    KEY_SPRINT    KEY_SR        KEY_SREDO
  538.     KEY_SREPLACE    KEY_SRESET    KEY_SRIGHT    KEY_SRSUME
  539.     KEY_SSAVE    KEY_SSUSPEND    KEY_STAB    KEY_SUNDO
  540.     KEY_SUSPEND    KEY_UNDO    KEY_UP
  541.     
  542. =head2 curses(3) items not supported by C<Curses>
  543.     
  544.     Functions
  545.     ---------
  546.     tstp printw wprintw mvprintw mvwprintw scanw wscanw mvscanw mvwscanw
  547.     _putchar fullname
  548.     
  549.     Variables
  550.     ---------
  551.     ttytype Def_term My_term
  552.  
  553. [*] stdscr and curscr are also available via the Perl functions C<stdscr>
  554. and C<curscr>.  See L<"Perl 4.X cursperl Compatibility"> for more
  555. information.
  556.